package IC.Parser;

/**
 * The class extends Exception
 * the exceptions thrown if lexical error occurs
 */

public class LexicalError extends Exception
{
	
	// default constructor
    public LexicalError(String msg) {
    	super(msg);
    }
    
	// constructor
    public LexicalError(String msg, int line) {
    	super(line + ": " + msg);
    }
    
}

